# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
  THUMBNAIL_DEFAULT = "no_picture.gif"
  
  def show_flash
    content_tag 'div', flash[:notice], :id=>'notice' if flash[:notice]
    content_tag 'div', flash[:error], :id=> 'error' if flash[:error]    
  end
  
  def output_thumbnail_img(video_thumbnail)
    image_tag("#{video_thumbnail || THUMBNAIL_DEFAULT}", :class => "video_thmb", :title => "Click to play this video.", :alt => "Unable to display image.")
  end
end
